package com.example.gitstudy.annoation;

import lombok.Data;

/**
 * @author hwj
 * @date 2022/12/15 10:04
 * @描述；创建一个类，并在类的属性上加上自定义注解的标识
 */
@Data
public class Person {

    @ParamsCheck(attributeName = "username")
    private String username;
    @ParamsCheck(attributeName = "id")
    private String id;
    private String sex;

    public Person(String username, String id, String sex) {
        this.username = username;
        this.id = id;
        this.sex = sex;
    }
}
